package kr.hkit.powerjava.chapter12.interfaceex;

class Novel extends Book{
	
	public Novel(int number, String title, String author) {
		super(number, title, author);
	}

	public int getLateFees(int days){
		return days * 300;
	}
}

class Poet extends Book {
	public Poet(int number, String title, String author) {
		super(number, title, author);
	}

	public int getLateFees(int days){
		return days * 200;
	}
}

class SicenceFiction extends Book {
	public SicenceFiction(int number, String title, String author) {
		super(number, title, author);
	}

	public int getLateFees(int days){
		return days * 600;
	}
}

public class BookTestMain{
	public static void main(String[] args) {
		Book[] arrBook = new Book[4];
		arrBook[0] = new Novel(100, " 잘못은 우리 별에 있어","존그린");
		arrBook[1] = new Poet(200, " 시읽기 좋은날","샘");
		arrBook[2] = new SicenceFiction(300, " 공상과학독본 4 ","야나기타 리카오");
		arrBook[3] = new Novel(100, "잘못은 우리별에 없어", "존그린");
		for(int i = 0 ; i<arrBook.length;i++){
			System.out.println(arrBook[i]);
			System.out.println("연체료 : " + arrBook[i].getLateFees(3));
		}
		
		for(int i = 0; i<arrBook.length;i++){
			if(equals(arrBook[i]));
		}
		
		
		
	}
}

